
package la.foton.atividade.controller;

import java.io.Serializable;
import javax.faces.application.FacesMessage;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class BaseBean extends AbstractBaseBean implements Serializable
{

   /**
	 * 
	 */
   private static final long serialVersionUID = 1L;

   private static final Logger logger = LoggerFactory.getLogger(BaseBean.class);


   protected void addErrorMessage(String componentId, String errorMessage)
   {
      addMessage(componentId, errorMessage, FacesMessage.SEVERITY_ERROR);
   }

   protected void addErrorMessage(String errorMessage)
   {
      addErrorMessage(null, errorMessage);
   }

   protected void addInfoMessage(String componentId, String infoMessage)
   {
      addMessage(componentId, infoMessage, FacesMessage.SEVERITY_INFO);
   }

   protected void addInfoMessage(String infoMessage)
   {
      addInfoMessage(null, infoMessage);
   }

}
